#include "app/app.h"
#include "app/testapp.h"

int main(int argc, char* argv[]) {
	try {
		gLog.add(new std::ofstream("global.log"));

		gLog << "Starting Overdrive Assault...";
		
		osg::ref_ptr<app::TestApp> app = new app::TestApp();
		app->run();

		gLog << "Shutting down";
	}
	catch (std::exception e) {
		std::cerr << e.what() << std::endl;
	}
	catch (...) {
		std::cerr << "Unknown exception" << std::endl;
	}

	return 0;
}